Educational Codeforces Round 57 D. Easy Problem